package com.ics.atable.chat.model.vo.node;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 节点的通用响应对象
 *
 * @author haohongbin
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "节点的通用响应对象")
public class NodeResponse {

    @Schema(description = "节点名称")
    private String node;

    @Schema(description = "节点数据")
    private Object data;

    @Schema(description = "时间戳")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date timestamp;
}
